package com.bifang.common.constant.enums.common;
/** 应用类型 */
public enum AppTypeEnum {
    social_contact("1", "社交"),
    finance("2", "金融"),
    government("3", "政府"),
    bank("4", "银行"),
    org("5", "企业"),
    other("6", "其他");
    private String type;
    private String text;

    AppTypeEnum(String type, String text) {
        this.type = type;
        this.text = text;
    }

    public String getType() {
        return this.type;
    }

    public String getText() {
        return this.text;
    }

    public static AppTypeEnum getByType(String type) {
        for (AppTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equalsIgnoreCase(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
